import 'package:flutter/material.dart';

///公共的appBar
PreferredSizeWidget myAppBar({String title}){
    return AppBar(
        title: title!=null ?  Text(title,style: TextStyle(color: Colors.black)):null,
        backgroundColor: Colors.white,
        brightness: Brightness.light,
        elevation: 0,
        iconTheme: IconThemeData(color: Colors.black),
    );
} 